<?php
namespace Admin\Model;
use Think\Model;
class ConfigModel extends Model {
    //自动验证
    protected $_validate = array(
         array('con_id','require','必须！',self::EXISTS_VALIDATE ),
         array('con_key','require','键名必须！',self::EXISTS_VALIDATE ),
         array('con_value','require','参数值必须！',self::EXISTS_VALIDATE ),
         array('con_status','require','开启状态必须！',self::EXISTS_VALIDATE ),
         array('con_createtime','require','创建时间n必须！',self::EXISTS_VALIDATE ),
         array('con_updatetime','require','更新时间必须！',self::EXISTS_VALIDATE ),
         
    );
    // 自动填充设置
    protected $_auto = array(
         array('con_createtime','time',self:: MODEL_INSERT,'function'),
         array('con_updatetime','time',self:: MODEL_INSERT,'function'),
         array('con_updatetime','time',self:: MODEL_UPDATE,'function'),
         
    );
}